package com.cxria.script.upload.dao.support

class Page implements Serializable {
    private static final int INDEX = 1;
    private static final int NUM = 20;
//        @ApiModelProperty("当前页数")
    Integer pageIndex;
//        @ApiModelProperty("每页显示数量")
    Integer pageSize;
//        @ApiModelProperty("总计数量")
    Integer total;

    Page() {
        this.pageIndex = 1;
        this.pageSize = 20;
    }

    Page(Integer pageIndex, Integer pageSize) {
        this.pageSize = pageSize;
        this.pageIndex = pageIndex;
    }

    int getBeginNum() {
        return (this.pageIndex - 1) * this.pageSize;
    }

}
